using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UpgradeRapidKilling:Upgrade {
	protected override void SubscribeEvents() {
		base.SubscribeEvents();
		Mob.Death+=DeathEventHandler;
	}
	public override void UnsubscribeEvents() {
		base.UnsubscribeEvents();
		Mob.Death-=DeathEventHandler;
	}

	void DeathEventHandler(object sender,DeathEventArgs e){
		if(e.killerWeapon!=weapon.weapon) return;
		weapon.weapon.currentClip.AddRound(0,false);
		weapon.owner.buffs[typeof(BuffRapidFire)].stacks+=3;
	}

}
